﻿<div class="" style="margin-left:10px;">

		<table id="dataAdminList" border="0" cellpadding="2" cellspacing="0" style="width: 100%;">
			<tr class="adminBar">
				<td colspan="4"><span><img src="~img/list.gif" /> _{jobAdmin}</span> </td>
			</tr>
			<tr class="tableHeader">
				<td>_{name}</td>
				<td>_{jobLableInterval} _{jobLableIntervalUnit}</td>
				<td>_{jobType}</td>
				<td>_{admin}</td>
			</tr>
			<!-- BEGIN list -->
			<tr class="tableItems">

				<td>#{job.Name}</td>
				<td>#{job.Interval} <a href="#{job.LinkEdit}" class="frmBox"><img src="~img/edit.gif" /> _{edit}</a></td>
				<td>#{job.Type}</td>
				<td>#{job.LinkStop}</td>
			</tr>
			<!-- END list -->
		</table>

</div>

<script>
_run( function() {

    var mycmd = function() {
        if( confirm( '_{jobCmdTip}' ) ) {
            var url = $(this).attr( 'href' );
            $.post( url, function(data) {
                if( 'ok'==data ) {
                    $('body').html( '<div style="width:500px;text-align:center;margin:50px auto;font-size:22px;font-weight:bold;">_{jobCmdDone}</div>' );
                    wojilu.tool.forwardPage( '#{listUrl}',0 );
                }
                else
                    alert( data );
            });
            
            return true;
        }
        return false;
    };

    $( '.stopCmd').click( mycmd );
    $( '.startCmd').click( mycmd );
});
</script>

<style>
.stopped {color:Red;}
</style>
